[feature] nextTriggerAt 저장과 event/task 삭제 시 리마인드 알림 cancel 처리 #339
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📎 Issue 번호
closed #193
📄 작업 내용 요약
1. nextTriggerAt 저장
사용자가 반복 일정을 생성하고 알림 on 상태로 생성할 경우,
scheduled_notification(예정된 알림 목록)에 첫 번째 알림만 ACTIVE 상태로 생성되고
해당 알림이 실제로 전송된 후에(COMPLETED) 다음 반복주기의 알림을 새로 생성되도록 만들었습니다.
2. event/task 삭제 시 리마인드 알림 cancel 처리
사용자가 리마인드 알림 ON 상태로 생성한 event 또는 task를 삭제하는 경우,
scheduled_notification에 이미 생성되어 있던 해당 알림을
CANCELED 상태로 변경하도록 처리했습니다.
💬 Review Requirements (선택)